Skip to content

fix(clerk-js): Backport iframe __client_uat cookie domain fix#7882

Merged
brkalow merged 1 commit intorelease/core-2from
bryce/backport-iframe-client-uat-cookie-domain
Feb 18, 2026
Merged

fix(clerk-js): Backport iframe __client_uat cookie domain fix#7882
brkalow merged 1 commit intorelease/core-2from
bryce/backport-iframe-client-uat-cookie-domain

Conversation

@brkalow
Copy link
Member

@brkalow brkalow commented Feb 18, 2026

Summary

  • Backport of fix(clerk-js): Prevent duplicate __client_uat cookies in iframe contexts #7875 to release/core-2
  • Fixes __client_uat cookie being set on two different domain scopes when app is loaded in both iframe and non-iframe contexts
  • getCookieDomain() now falls back to hostname instead of undefined when the eTLD+1 probe fails, and the probe uses the same SameSite/Secure attributes as the actual cookie

Test plan

  • Verify existing getCookieDomain tests pass
  • Verify __client_uat cookie is set correctly in iframe and non-iframe contexts

🤖 Generated with Claude Code

…xts (#7875)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
@changeset-bot
Copy link

changeset-bot bot commented Feb 18, 2026

🦋 Changeset detected

Latest commit: 27019fe

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@clerk/clerk-js Patch
@clerk/chrome-extension Patch
@clerk/clerk-expo Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Feb 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
clerk-js-sandbox Ready Ready Preview, Comment Feb 18, 2026 8:58pm

Request Review

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 18, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch bryce/backport-iframe-client-uat-cookie-domain

Comment @coderabbitai help to get the list of available commands and usage tips.

@brkalow brkalow enabled auto-merge (squash) February 18, 2026 21:04
@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 18, 2026

Open in StackBlitz

@clerk/agent-toolkit

npm i https://pkg.pr.new/@clerk/agent-toolkit@7882

@clerk/astro

npm i https://pkg.pr.new/@clerk/astro@7882

@clerk/backend

npm i https://pkg.pr.new/@clerk/backend@7882

@clerk/chrome-extension

npm i https://pkg.pr.new/@clerk/chrome-extension@7882

@clerk/clerk-js

npm i https://pkg.pr.new/@clerk/clerk-js@7882

@clerk/dev-cli

npm i https://pkg.pr.new/@clerk/dev-cli@7882

@clerk/elements

npm i https://pkg.pr.new/@clerk/elements@7882

@clerk/clerk-expo

npm i https://pkg.pr.new/@clerk/clerk-expo@7882

@clerk/expo-passkeys

npm i https://pkg.pr.new/@clerk/expo-passkeys@7882

@clerk/express

npm i https://pkg.pr.new/@clerk/express@7882

@clerk/fastify

npm i https://pkg.pr.new/@clerk/fastify@7882

@clerk/localizations

npm i https://pkg.pr.new/@clerk/localizations@7882

@clerk/nextjs

npm i https://pkg.pr.new/@clerk/nextjs@7882

@clerk/nuxt

npm i https://pkg.pr.new/@clerk/nuxt@7882

@clerk/clerk-react

npm i https://pkg.pr.new/@clerk/clerk-react@7882

@clerk/react-router

npm i https://pkg.pr.new/@clerk/react-router@7882

@clerk/remix

npm i https://pkg.pr.new/@clerk/remix@7882

@clerk/shared

npm i https://pkg.pr.new/@clerk/shared@7882

@clerk/tanstack-react-start

npm i https://pkg.pr.new/@clerk/tanstack-react-start@7882

@clerk/testing

npm i https://pkg.pr.new/@clerk/testing@7882

@clerk/themes

npm i https://pkg.pr.new/@clerk/themes@7882

@clerk/types

npm i https://pkg.pr.new/@clerk/types@7882

@clerk/upgrade

npm i https://pkg.pr.new/@clerk/upgrade@7882

@clerk/vue

npm i https://pkg.pr.new/@clerk/vue@7882

commit: 27019fe

@brkalow brkalow disabled auto-merge February 18, 2026 22:04
@brkalow brkalow merged commit 7fe1e82 into release/core-2 Feb 18, 2026
42 of 45 checks passed
@brkalow brkalow deleted the bryce/backport-iframe-client-uat-cookie-domain branch February 18, 2026 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments